PlayerEventsAddedEvent

data class PlayerEventsAddedEvent(playerId: PlayerId, events: List<PlayerEvent>) : Event

Send events as a list, allowing them to be batched on the browser for less congestion. If batched, events must ALWAYS be in chronological order.

Constructors

PlayerEventsAddedEvent
Link copied to clipboard
fun PlayerEventsAddedEvent(playerId: PlayerId, events: List<PlayerEvent>)

Functions

domain
Link copied to clipboard
open override fun domain(): String
Returns domain name for which event was generated.
eventName
Link copied to clipboard
open override fun eventName(): String
Returns event name as described in protocol.

Properties

events
Link copied to clipboard
val events: List<PlayerEvent>
playerId
Link copied to clipboard
val playerId: PlayerId

Sources

jvm source
Link copied to clipboard